package com.hzvictory.hotel_system.mapper;

import java.util.List;
import com.hzvictory.hotel_system.pojo.entity.Seatorder;
import org.apache.ibatis.annotations.Mapper;

/**
 * 座位订单Mapper接口
 *
 * @author hzvictory
 * @date 2025-07-23
 */
@Mapper
public interface SeatorderMapper
{
    /**
     * 查询座位订单
     *
     * @param id 座位订单主键
     * @return 座位订单
     */
    public Seatorder selectSeatorderById(Long id);

    /**
     * 查询座位订单列表
     *
     * @param seatorder 座位订单
     * @return 座位订单集合
     */
    public List<Seatorder> selectSeatorderList(Seatorder seatorder);
    /**
     * 根据id查询座位订单列表
     *
     * @param userId 用户id
     * @return 座位订单集合
     */
    public List<Seatorder> selectSeatorderListByUserId(Long userId);

    /**
     * 新增座位订单
     *
     * @param seatorder 座位订单
     * @return 结果
     */
    public int insertSeatorder(Seatorder seatorder);

    /**
     * 修改座位订单
     *
     * @param seatorder 座位订单
     * @return 结果
     */
    public int updateSeatorder(Seatorder seatorder);
    public int updateSeatorderStatusById(Long id);
    /**
     * 删除座位订单
     *
     * @param id 座位订单主键
     * @return 结果
     */
    public int deleteSeatorderById(Long id);

    /**
     * 批量删除座位订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSeatorderByIds(Long[] ids);
}
